package com.wanmait.schedule.service.impl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.wanmait.schedule.entity.NoticeType;
import com.wanmait.schedule.mapper.NoticeTypeMapper;
import com.wanmait.schedule.service.NoticeTypeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 通知类型表 服务实现类
 * </p>
 *
 * @author wanmait
 * @since 2022-12-05
 */
@Service
public class NoticeTypeServiceImpl extends ServiceImpl<NoticeTypeMapper, NoticeType> implements NoticeTypeService {

   @Resource
    NoticeTypeMapper noticeTypeMapper;
   @Override
   public Boolean update(NoticeType noticeType){
       int i= noticeTypeMapper.updateById(noticeType);
       return null;

   }

    @Override
    public List<NoticeType> list() {
        return noticeTypeMapper.list();
    }
}
